package com.project.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import wt.InspectXmService;

import java.util.List;
import java.util.Map;

@RestController
@CrossOrigin(value = { "*" },allowCredentials = "true")
public class InspectXmController {
    @Reference
    InspectXmService service;
    @RequestMapping("getJCXM")
    public Object getJCXM(String rqo,String rqt){
        List<Map<String,Object>> getJCXM = service.getJCXM(rqo,rqt);
        return getJCXM;
    }
    @RequestMapping("getTJ")
    public Object getTJ(Map<String,Object> map){
        List<Map<String,Object>> getTJ = service.getTJ(map);
        return getTJ;
    }
}
